package ucd.csi.comp30220.fall2011.oteop.webapp.client;

import java.io.Serializable;

public class Info implements Serializable {
    
    private static final long serialVersionUID = 481259422419672129L;
    
    private String id;
    private String icon;
    private String message;
    private double latitude;
    private double longitude;
    private transient long time;
    
    public Info() {}

    public Info(String id, String icon, String message, double latitude, double longitude) {
        this.id = id;
        this.icon = icon;
        this.message = message;
        this.latitude = latitude;
        this.longitude = longitude;
        time = System.currentTimeMillis();
    }

    public String getId() {
        return id;
    }

    public String getIcon() {
        return icon;
    }

    public String getMessage() {
        return message;
    }

    public double getLatitude() {
        return latitude;
    }

    public double getLongitude() {
        return longitude;
    }
    
    public long getTime() {
       return time; 
    }
}
